/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package stats;

import Statistics.Matrix;
import Statistics.Multivariate;

/**
 *
 * @author Semih UTKU
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        double[][] d =  {{0.4100,2.9673,0.1400},
            {0.4400,2.9491,0.1400},
            {0.4600,2.9309,0.1400},
            {0.4900,2.9127,0.1400},
            {0.5100,2.8945,0.1300},
            {0.5300,2.8763,0.1100},
            {0.5400,2.8581,0.1100},
            {0.5500,2.8399,0.1000},
            {0.5600,2.8217,0.1000},
            {0.5600,2.8035,0.0900},
            {0.3600,2.7853,0.0600},
            {0.5000,2.7671,0.0900},
            {0.5500,2.7489,0.0800},
            {0.5500,2.7307,0.0700},
            {0.5600,2.7125,0.0600},
            {0.5600,2.6943,0.0600},
            {0.5600,2.6761,0.0500},
            {0.5600,2.6578,0.0400},
            {0.5600,2.6396,0.0400},
            {0.5700,2.6214,0.0300},
            {0.5700,2.6032,0.0200}
        };

        Matrix A = new Matrix(d);
        Matrix B;

        //A.Load("matrix.txt");

        System.out.println(A.showMatrix());

        System.out.println("---------------------------");

        Multivariate m = new Multivariate(A);

        m.Mahalanobis();

        B = m.A;

        System.out.println(B.showMatrix());


    }

}
